// 首页模块
import { RouteObject } from 'react-router-dom'
import LayoutIndex from '../../Layout/MainLayout'
import {lazy} from 'react'
import lazyLoad from '../utils/lazyLoad'

const homeRouter: Array<RouteObject> = [
   {
    element: <LayoutIndex></LayoutIndex>,
    children: [
        {
            // 懒加载
            path:'/home',
            element:lazyLoad(lazy(()=>import('@/pages/home')))
        }
    ]
   }
]
export default homeRouter